package com.youlu.campus.entity.course;

import com.youlu.campus.base.base.EntityBase;
import lombok.Data;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 暂时没有用了
 * @author : [dengbo]
 * @className : ActivityCourseRelation
 * @description : [活动课程关联表]
 * @createTime : [2022/5/27 12:53]
 */
@Data
@Document(collection = "activity_course_relation")
@CompoundIndexes({
        @CompoundIndex(name = "idx_activity_course_bind", def = "{'activityId':-1,'courseId':-1,'bind':-1}")
})
public class ActivityCourseRelation extends EntityBase {
    /**
     * 活动ID
     */
    private String activityId;
    /**
     * 课程ID
     */
    private String courseId;
    /**
     * 0:未绑定、1:绑定
     */
    private Integer bind;
}
